package com.espirit.weixin.common;

import java.util.ArrayList;
import java.util.List;

import org.codehaus.jackson.annotate.JsonProperty;

public class Menu {

	@JsonProperty("button")
	private List<Button> buttons;

	public List<Button> getButtons() {
		return buttons;
	}

	public void setButtons(List<Button> buttons) {
		this.buttons = buttons;
	}
	
	public void addButton(Button button){
		if (this.buttons == null) {
			this.buttons = new ArrayList<>();
		}
		this.buttons.add(button);
	}
}
